import Vue from 'vue'
import Router from 'vue-router'
//===》登录部分
import wlogin from '@/components/wlogin'	//登录
import wreg from '@/components/wreg'	//注册
import wfindpw from '@/components/wfindpw'	//忘记密码
//===>聊天部分
import wmyfriend from '@/nav/wmyfriend'	//社交
import wfriendsSearch from '@/components/wfriendsSearch'	//好友搜索
import wgroupChat from '@/components/wgroupChat'	//发起群聊
import wcode from '@/components/wcode'	//二维码名片
import wchat from '@/components/wchat'	//好友聊天界面
import wchatgroup from '@/components/wchatgroup'	//群聊，聊天界面


//===>股红部分	支付页面：[hiuyuanbuy]、[wrecharge]
//				提现页面:[wwithdraw([余额=》余额提现][货款钱包=》货款钱包提现])]、[wdeposit]（[光告收益=》提现]）
import wShares from '@/nav/wShares'	//股红首页
import alldetail from '@/components/alldetail'	//各种明细
	//	{扫码}
import wscan from '@/components/wscan'	//股红首页
	//{转账}		
import wfreeze from '@/components/wfreeze'	//活积分转账
import wwork from '@/components/wwork'	//冻积分转账
import wbalancez from '@/components/wbalancez'	//余额转账
import wtransferrecord from '@/components/wtransferrecord'	//转账记录
import wupdateZhifuPass from '@/components/wupdateZhifuPass'	//支付页面

	//	{二维码}
import wpersonagecode from '@/components/wpersonagecode'	//商家收款二维码
import wcollectionrecord from '@/components/wcollectionrecord'	//商家收款二维码
import wmerchantcode from '@/components/wmerchantcode'	//个人推广二维码

	//	{引流送积分}
import wdrainage from '@/components/wdrainage'	//个人推广二维码

	//{积分管理}
import wintegral from '@/components/wintegral'	//积分管理
import wdeposit from '@/components/wdeposit'	//广告收益=》账户提现
import copy from '@/components/copy'	//复消积分明细

	//	{货款钱包}
import wpayment from '@/components/wpayment'	//货款钱包
import wdetail from '@/components/wdetail'	//明细
	//{余额}
import wbalance from '@/components/wbalance'	//余额
import wTouchBalance from '@/components/wTouchBalance'	//余额明细
import wrecharge from '@/components/wrecharge'	//账户充值
import wwithdraw from '@/components/wwithdraw'	//账户提现[余额=》余额提现][货款钱包=》货款钱包提现]
//import myCard from '@/components/myCard'	//	我的银行卡
//-------------------
	//{会员}
import huiyuan from '@/components/huiyuan'	//会员
//import wmemberdetail from '@/components/wmemberdetail'	//会员明细【删除】
import huiyuanDetail from '@/components/huiyuanDetail'	//会员详情
import hiuyuanbuy from '@/components/hiuyuanbuy'	//会员购买
import zhifuOk from '@/components/zhifuOk'	//购买成功
//	{银行卡}
import add from '@/components/add'	//添加银行卡
import addCard from '@/components/addCard'	//我的银行卡

//{设置部分}[李叶单]
import pass from '../set/Pass'	//选择修改还是忘记密码
import shezhi from '../set/shizhi'	//设置页面
import iUpdatePass from '../set/iUpdatePass'		//账户安全中的登录密码
import fuyinshezhi1 from '../set/fuyinshezhi1' //复引设置
import updateZhiPass from '../set/updateZhiFuPass'	//	修改密码
import setpass from '../set/setpass'	//	设置密码

//===>首页部分
import iIndex from '@/nav/iIndex'	//首页
import iMessage from '@/pages/iMessage'	//首页=>消息通知
import iPingLun from '@/pages/iPingLun'	//首页=》评论页面	
import iSearch from '@/pages/iSearch'	//首页=》搜索
import iXiangQing from '@/pages/iXiangQing'	//首页=>文章详情


//===>我的部分
import imy from '../nav/imy'	//我的首页
import iFuDao from '../pages/iFuDao'	//我的辅导老师
import iFuWu from '../pages/iFuWu'	//服务申请三个条件
import iGuanyu from '../pages/iGuanyu'	//关于我们
import iInfo from '../pages/iInfo'	//点击头像进入我的详情信息
import iNiCheng from '../pages/iNiCheng'	//修改昵称
import iSheZhi from '../pages/iSheZhi' //我的里面的设置
import findPass from '../pages/findPass'//账户安全中的登录密码
import iXieYi from '../pages/iXieYi'	//协议与生命
import iYiJian from '../pages/iYiJian' //我的里面的意见反馈	
import iFuWuInfo from '../pages/iFuWuInfo'//服务需要的申请资料
import iRenZheng from '../pages/iRenZheng'//我的里面的认证
//	{信息认证请款}
import kongFuwu from '../pages/iKongFuwu'	//没有认证
import iShenHe from '../pages/iShenHe'	//信息审核中
import iShenHeFail from '../pages/iShenHeFail' //信息审核失败
import iShenHeSuccess from '../pages/iShenHeSuccess'	//信息审核成功


	//=>地图（可以去掉）
//import wmap from '@/components/wmap'	//地图组件【已删除】
Vue.use(Router)

export default new Router({
	linkActiveClass: 'footer_action',	//将激活的路由添加一个mui-active类名称[只适用于路由跳转]
//	mode:"history",
  routes: [
	  {
	  	path:"*",
	  	redirect:"/wlogin"
	  },
	  //登录部分
    {
      path: '/wlogin',
      name: 'wlogin',
      component: wlogin
    },
    {
      path: '/wreg',
      name:"wreg",
      component: wreg
    },
    {
      path: '/wfindpw',
      name:"wfindpw",
      component: wfindpw
    },
    //=》李叶单
    //股红设置
    {
		path: '/pass',
		name:'pass',
		component: pass
	},
	{
		path: '/findPass',
		name:'findPass',
		component:findPass
	},
	{
		path: '/shezhi',
		name:'shezhi',
		component: shezhi
	},
	{
		path: '/updateZhiPass',
		name:'updateZhiPass',
		component: updateZhiPass
	},
	
	//首页
     {
      path: '/iIndex',
      name:"iIndex",
      component: iIndex
    },
    {
      path: '/message',
      name:"message",
      component: iMessage
    },
    {
      path: '/pinglun/:id',
      name:"pinglun",
      component: iPingLun
    },
     {
      path: '/search',
      name:"search",
      component: iSearch
    },
     {
      path: '/xiangQing/:id',
      name:"xiangQing",
      component: iXiangQing
    },
    {
	 path: '/imy',
	 name:'imy',
	 component: imy
	},
	{
		path: '/fudao',
		name:'fudao',
		component: iFuDao
	},
	{
		path: '/fuwu',
		name:'fuwu',
		component: iFuWu
	},
	{
		path: '/guanyu',
		name:'guanyu',
		component: iGuanyu
	},
	{
		path: '/info',
		name:'info',
		component: iInfo
	},
	{
		path: '/nicheng',
		name:'nicheng',
		component: iNiCheng
	},
	{
		path: '/xieyi',
		name:'xieyi',
		component: iXieYi
	},
	{
		path: '/yijian',
		name:'yijian',
		component: iYiJian
	},
	{
		path: '/shenhe',
		name:'shenhe',
		component: iShenHe
	},
	{
		path: '/shenhefail',
		name:'shenhefail',
		component: iShenHeFail
	},
	{
		path: '/shenhesuccess',
		name:'shenhesuccess',
		component: iShenHeSuccess
	},
	{
		path: '/ishezhi',
		name:'ishezhi',
		component: iSheZhi
	},
	{
		path: '/iupdatepass',
		name:'iupdatepass',
		component: iUpdatePass
	},
	{
		path: '/fuwuinfo',
		name:'fuwuinfo',
		component: iFuWuInfo
	},
	{
		path: '/renzheng',
		name:'renzheng',
		component: iRenZheng
	},
    //=》王俊
    {
      path: '/copy',
      name:"copy",
      component: copy
    },
    {
      path: '/wmyfriend',
      name:"wmyfriend",
      component: wmyfriend
    },
    {
		path: '/kongfuwu',
		name: 'kongfuwu',
		component: kongFuwu
	},
    {
      path: '/wfriendsSearch/:id',
      name:"wfriendsSearch",
      component: wfriendsSearch
    },
    { 
      path: '/wgroupChat',
      name:"wgroupChat",
      component: wgroupChat
    },
    {
      path: '/wcode',
      name:'wcode',
      component: wcode
    },
    {
      path: '/wchat/:id',
      name:'wchat',
      component: wchat
    },
    {
      path: '/wchatgroup/:id',
      name:'wchatgroup',
      component: wchatgroup
    },
    {
      path: '/wfreeze',
      name:'wfreeze',
      component: wfreeze
    },
    {
      path: '/setpass',
      name:'setpass',
      component: setpass
    },
    {
      path: '/wwork/:id',
      name:'wwork',
      component: wwork
    },
    {
      path: '/wtransferrecord',
      name:'wtransferrecord',
      component: wtransferrecord
    },
    {
      path: '/wbalancez',
      name:'wbalancez',
      component: wbalancez
    },
    {
      path: '/wShares',
      name:'wShares',
      component: wShares
    },
    {
      path: '/wpersonagecode',
      name:'wpersonagecode',
      component: wpersonagecode
    },
    {
      path: '/wcollectionrecord',
      name:'wcollectionrecord',
      component: wcollectionrecord
    },
    {
      path: '/wmerchantcode',
      name:'wmerchantcode',
      component: wmerchantcode
    },
    {
      path: '/wdrainage',
      name:'wdrainage',
      component: wdrainage
    },
     {
      path: '/wpayment',
      name:"wpayment",
      component:wpayment
    },
     {
      path: '/wdeposit',
      name:'wdeposit',
      component:wdeposit
    },
     {
      path: '/wintegral',
      name:'wintegral',
      component:wintegral
    },
    {
      path: '/wbalance',
      name:'wbalance',
      component:wbalance
    },
     {
      path: '/wrecharge',
      name:'wrecharge',
      component:wrecharge
    },
    {
      path: '/wscan',
      name:'wscan',
      component:wscan
    },
     {
      path: '/wwithdraw',
      name:'wwithdraw',
      component:wwithdraw
    },
     {
      path: '/wdetail',
      name:'wdetail',
      component:wdetail
    },
    {
      path: '/huiyuan',
      name:'huiyuan',
      component:huiyuan
    },
    {
      path: '/huiyuanDetail/:id',
      name:'huiyuanDetail',
      component:huiyuanDetail
    },
    {
      path: '/hiuyuanbuy/:buyID',
      name:'hiuyuanbuy',
      component:hiuyuanbuy
    },
    {
      path: '/zhifuOk/:id',
      name:'zhifuOk',
      component:zhifuOk
    },
    {
      path: '/add',
      name:'add',
      component:add
    },
    {
      path: '/addCard',
      name:'addCard',
      component:addCard
    },
    {
	  path: '/fuyinshezhi1',
	  name:'fuyinshezhi1',
	  component: fuyinshezhi1
	},
//  {	//地图组件删除
//    path: '/wmap',
//    name:'wmap',
//    component:wmap
//  },
//  wmemberdetail	//会员明细，因只有四个会员所以此明细取消
    {
      path: '/wupdateZhifuPass/:id',
      name:'wupdateZhifuPass',
      component:wupdateZhifuPass
    },{
      path: '/wTouchBalance',
      name:'wTouchBalance',
      component:wTouchBalance
    },
    {	//会员明细部分【删除】
      path: '/alldetail/:id',
      name:'alldetail',
      component:alldetail
    }

  ]
})
